<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>所有货运单</title>
<style type="text/css">
	div,table{
		width: 80%;
	}
	table{
		border-collapse: collapse;
		border: 1px solid #ccc;
		text-align: center;
	}
	.table td{
		border: 1px solid #ccc;
	}
	.first{
		margin-top: 2%;
	}
</style>
</head>
<body>
<center>
	<div class="first"><a href="${pageContext.request.contextPath }/cargo/toAddCargo.do">继续下单</a></div>
	<div>
		<table class="table">
				<caption>展示单件物品信息</caption>
				<tr>
					<td>序号</td>
					<td>总提单号</td>
					<td>分单号</td>
					<td>pdf地址</td>
					<td>送达地址</td>
					<td>毛重</td>
					<td>件数</td>
					<td>操作</td>
				</tr>
				<c:if test="${empty cargolist }">
				<tr>
					<td colspan="8">暂时没有数据</td>
				</tr>
				</c:if>
				<c:if test="${not empty cargolist }">
				<c:forEach var="cl" items="${cargolist }" varStatus="vs">
				<tr>
					<td>${vs.count }</td>
					<td>${cl.totalOrderNu }</td>
					<td>${cl.pointOrderNu }</td>
					<td><a href="${cl.uploadPdf }">点击下载</a></td>
					<td>${cl.detailed }</td>
					<td>${cl.heavy }</td>
					<td>${cl.count }</td>
					<td>
					<a href="${pageContext.request.contextPath }/cargo/deleteCargo.do?cargoId=${cl.cargoId}">删除</a>
					&nbsp;&nbsp;&nbsp;
					<a href="${pageContext.request.contextPath }/cargo/toUpdateCargo.do">修改</a>
					</td>
				</tr>
				</c:forEach>
				</c:if>
		</table>
	</div>
	
</center>
</body>
</html>